package com.teng.mrliuproject.ui.vmodel

import androidx.databinding.ObservableField
import com.alibaba.android.arouter.launcher.ARouter
import com.teng.mrliuproject.base.RouteManages
import com.teng.mrliuproject.entity.HomeNumBean
import com.teng.mrliuproject.net.Api
import com.teng.mrliuproject.net.ApiCode
import com.teng.mylibrary.base.BaseViewModel
import com.teng.mylibrary.callback.livedata.event.EventLiveData
import com.teng.mylibrary.net.RetrofitHelper

/**
 * Description:
 * Author:       liuteng
 * CreateDate:   2022/4/15 11:46
 * UpdateRemark: 更新说明
 */
class MainVModel : BaseViewModel() {

    var appVersion: ObservableField<String> = ObservableField()
    val myUc by lazy { UIChangeObservable() }

    inner class UIChangeObservable {
        //显示双项提示框
        val showActionTextEvent by lazy { EventLiveData<String>() }
    }


    override fun initData() {
        super.initData()
    }

    fun exit() {
        myUc.showActionTextEvent.value = "是否要退出登录？"
    }

    fun goBbgx() {
        ARouter.getInstance().build(RouteManages.UPDATE_ACTIVITY).navigation()
    }

}